package Threelayer.Entity;

import java.util.Date;

/**
 * @author lishunlin110
 * @version 1.0
 * @description: 人员实体类
 * @date 2021/8/23 13:01
 */
public class Person {
    private int id;
    private String name;
    private String dept_name;
    private int tot_cred;
    private Date  birthday;

    public Person(int id, String name, String dept_name, int tot_cred, Date birthday) {
        this.id = id;
        this.name = name;
        this.dept_name = dept_name;
        this.tot_cred = tot_cred;
        this.birthday = birthday;
    }

    public Person(String name, String dept_name, int tot_cred, Date birthday) {
        this.name = name;
        this.dept_name = dept_name;
        this.tot_cred = tot_cred;
        this.birthday = birthday;
    }

    public Person() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public int getTot_cred() {
        return tot_cred;
    }

    public void setTot_cred(int tot_cred) {
        this.tot_cred = tot_cred;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", dept_name='" + dept_name + '\'' +
                ", tot_cred=" + tot_cred +
                ", birthday=" + birthday +
                '}';
    }
}
